package com.foodplus.www.api.services;

import com.foodplus.www.bean.login.CodeBean;
import com.foodplus.www.bean.login.LoginBean;
import com.foodplus.www.bean.login.MemberDataBean;
import com.foodplus.www.bean.login.MyAssetBean;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by WangZhiChao on 2016/11/1.
 */

public interface LoginService {

    @GET("?")
    Observable<CodeBean> getCode(@QueryMap Map<String, String> params);

    @GET("?")
    Observable<MyAssetBean> getMyAsset(@QueryMap Map<String, String> params);


    @FormUrlEncoded
    @POST("?act=login")
    Observable<LoginBean> Login(@FieldMap Map<String, String> params);


    @FormUrlEncoded
    @POST("?act=member_index&op=find_memberdata")
    Observable<MemberDataBean> getMemberData(@FieldMap Map<String, String> params);

}
